import { getRatedDataApi } from "../../utils/api.js";

const actions = {
  // 异步请求最受好评电影数据
  getRatedDataAsync({ commit }) {
    return new Promise((resolve) => {
      getRatedDataApi().then((res) => {
        commit("getRatedData", res);
        resolve();
      });
    });
  },
};

export default actions;
